package Webpage;

import AutoTest.AutoFun;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-09-10
 * Time: 1:39
 */
public class ProductDetails {
    private WebDriver driver=null;
    public void test(){
        driver= AutoFun.getDriver();
        driver.findElement(By.xpath("//*[@id=\"floor1\"]/div[2]/div[2]/div/ul/li[7]/div")).click();
        test1();//收藏商品
        System.out.println("收藏商品功能测试完成");
        test2();//改变购买数量
        System.out.println("改变购买数量功能测试完成");
        test3();//加入购物车
        System.out.println("加入购物车功能测试完成");
        test4();//立即购买
        System.out.println("立即购买功能测试完成");
        System.out.println("商品详情页测试完成");
    }
    private void test1(){};
    private void test2(){};
    private void test3(){};
    private void test4(){};

}
